<template>
    <div>
        <ul class="mui-table-view">
				<li class="mui-table-view-cell mui-media" v-for="(item,i) in 10" :key="item">
					<router-link :to="'/home/newsInfo/'+item" class="">
						<img class="mui-media-object mui-pull-left" src="">
						<div class="mui-media-body">
							{{item}}
							<p class="mui-ellipsis">
                                <span>发表时间：{{timeData | dataForm}}</span>
                                <span>点击次数:10</span>
                            </p>
						</div>
					</router-link>
				</li>
			</ul>
    </div>
</template>
<script>
    export default {
        data(){
            return {
                newsData:[],
                timeData:new Date().toString()
            }
        },
        methods:{
            getDate(){
                this.$http.get('http://vue.studyit.io/api/getnewslist').then(res=>{
                    //http://vue.studyit.io/api/getimgcategory
                    console.log(res);
                })
            }
        },
        created(){
            // this.getDate();
        },
        filters:{
            dataForm(d){
                let dat = new Date(d);
                console.log(dat.getMonth());
                return "2015-12-20";
            }
        }
    }
</script>
<style scoped lang="less">
    .mui-ellipsis{
        display:flex;
        justify-content:space-between;
    }
</style>